package com.ruoyi.web.controller.carbon;

import com.ruoyi.carbon.entity.WuliaoType;
import com.ruoyi.carbon.service.WuliaoTypeService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Anonymous
@RequestMapping("/carbon/wuliaoType")
public class WuliaoTypeController extends BaseController {
    @Autowired
    private WuliaoTypeService wuliaoTypeService;

    @GetMapping("/list")
    public TableDataInfo list(WuliaoType wuliaoType) {
        startPage();
        List<WuliaoType> list = wuliaoTypeService.list(wuliaoType);
        return getDataTable(list);
    }
}
